package com.itheima.demo.thread;

public class MyThread02 extends Thread{
    public MyThread02() {
    }

    public MyThread02(String name) {
        super(name);
    }

    @Override
    public void run() {//默认名字为Thread+线程序号(从0开始)
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+i);
        }
    }
}
